import yaml

def get_yaml_data(yaml_file):
    with open(yaml_file,encoding='utf-8') as f:
        return yaml.safe_load(f.read())

if __name__ == '__main__':
    # print(type(get_yaml_data('../data/allelement/jg_allElement.yaml')['create_button_locator']))
    print(type(get_yaml_data('../configs/ctrl_conf.yaml')['CONTROL_DICT']['ButtonControl']))
    print(type(*get_yaml_data('../configs/ctrl_conf.yaml')['CONTROL_DICT']['ButtonControl']))
